import tool

def func1(n):
    a = 1
    s = 0
    while a <= n:
        if (a%2 != 0):
            s = s+a
        a = a+1
    print("1到%d中所有的奇数和为：%d" % (n,s))

if __name__ == '__main__':
    n = int(input("请输入n的值："))
    func1(n)
    tool.func5()